import React from 'react'
import { useModel } from 'umi';

export default function Home() {
  const { isShowApp2, setIsShowApp2 } = useModel('@@qiankunStateFromMaster') || {};
  console.log(isShowApp2);

  return (
    <div>
      Home
      <button onClick={() => setIsShowApp2(true)}>打开App2</button>
    </div>
  )
}
